package com.hsomandroidapp.entity;

import java.io.Serializable;
import java.util.ArrayList;

public class OrderInfo implements Serializable {

	private static final long serialVersionUID = 2272380686765506046L;

	private ArrayList<Product> orderProducts;
	private Address address;
	private double taxFee;
	private double productFee;
	
	public double getTaxFee() {
		return taxFee;
	}
	public void setTaxFee(double taxFee) {
		this.taxFee = taxFee;
	}
	
	public double getProductFee() {
		return productFee;
	}
	public void setProductFee(double productFee) {
		this.productFee = productFee;
	}
	public ArrayList<Product> getOrderProducts() {
		return orderProducts;
	}
	public void setOrderProducts(ArrayList<Product> orderProducts) {
		this.orderProducts = orderProducts;
	}
	public Address getAddress() {
		return address;
	}
	public void setAddress(Address address) {
		this.address = address;
	}
	
	public void addProduct(Product prod){
		if(null == orderProducts){
			orderProducts = new ArrayList<Product>();
		}
		orderProducts.add(prod);
	}
	

	public void addProducts(ArrayList<Product> prods){
		if(null == orderProducts){
			orderProducts = new ArrayList<Product>();
		}
		orderProducts.addAll(prods);
	}
	
}
